package com.huixue.cn.ztej.dao;

import java.util.List;
import java.util.Map;

import com.huixue.cn.ztej.bean.Section;
import com.huixue.cn.ztej.utils.annotation.MyBatisRepository;


/**
 * 
 * @author Administrator
 *
 */
@MyBatisRepository
public interface SysSectionMapper {
	
	/**
	 * save section
	 * 
	 * @param section
	 * @return
	 */
	public void saveSection(Section pro);

	/**
	 * update Section
	 * 
	 * @param Section
	 * @return
	 */
	public void update(Section user);

	/**
	 * query Section by primary key
	 * 
	 * @param
	 * @return Section
	 */
	public Section findBySecId(Integer secId);
	
	/**
	 * query Section by name
	 * 
	 * @param
	 * @return Section
	 */
	public Section findByName(String name);
	/**
	 * 根据登录名查找所有状态类型的用户
	 * 
	 * @param
	 * @return Project
	 */
	public List<Section> findByProId(Integer proId);
	/**
	 * delete Section by primary key
	 * 
	 * @param id
	 * @return
	 */
	public void delete(int secId);
	
	 /**
	  * 分页查询工段
	  * @param searchParams
	  * @return
	  */
	 public List<Section> searchByPage(Map<String, Object> searchParams);
	 
	 /**
	  * 查询出所有的项目
	  * @return
	  */
	 public List<Section> findAll();

	 
	
	 public List<Section> listSectionByPro(int proId);
}
